#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<stdlib.h>
using namespace std;

//class stack
//{
//public:
//	stack(int capacity = 4)
//	{
//		_a = (int*)malloc(sizeof(int) * capacity);
//		_top = _capacity = 0;
//	}
//private:
//	int* _a;
//	int _top;
//	int _capacity;
//};
//
//int main()
//{
//	stack st1(2);
//	//st1._capacity = 5;
//	int a = 10;
//	int& b = a;
//	const double& c = a;
//	return 0;
//}


double compare(int, int)
{
	cout << "double compare(int,int)" << endl;
	return 0.0;
}

//double compare(double, double)
//{
//	cout << "double compare(double,double)" << endl;
//	return 0.0;
//
//}

double compare(double, int)
{
	cout << "double compare(double,int)" << endl;
	return 0.0;
}

int compare(double, double)
{
	cout << "int compare(double,double)" << endl;
	return 0;
}

int main()
{
	int a = 0, b = 0;
	double x = 0, y = 0;
	compare(a, b);
	compare(x, y);
	compare(x, a);

	return 0;
}